<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>文件上传与下载</title>
</head>
<body>
<div style="border:5px solid aqua;width: 500px;height: 100px">
    <form action="/" th:action="@{/upload}" method="post" enctype="multipart/form-data">
        <input type="file" name="file" id="file"/>
        <input type="submit" value="上传文件">
    </form>
</div>
<div style="border:5px solid #008cff;width: 500px;height: 100px">
    <form action="/" th:action="@{/download}" method="post">
        <input type="text" name="text" id="text" placeholder="输入路径"/>
        <input type="submit" value="下载文件">
    </form>
</div>
</body>
</html>